*** Settings ***
Suite Setup       Set Log Level    trace
Test Setup        One APP Login    &{appUser1}[name]    &{appUser1}[pwd]
Resource          ../../../Resources_Config.robot

*** Test Cases ***
获取问答列表-不设置查询参数
    [Tags]    L0
    &{response}    Get Request    ${get_q_and_a_list}
    Should Be Equal As Strings    &{response}[code]    200

获取问答列表-只设置pagesize
    [Tags]    L2
    ${params}    Create Dictionary    pageSize=10    currentPage=1
    ${response}    Get Request    ${get_q_and_a_list}    ${params}
    Should Be Equal As Strings    ${response["code"]}    ${200}
    Should Be Equal As Strings    ${response["body"]["data"]["questionAndAnswerList"][0]["content"]}    小龙测用户
